import React from "react";
import {post} from "../utils/request";


export const loginApi=(data)=>post('/admin/login',data);
export const insertVideo=(data)=>post('/admin/insertVideo',data);
export const getVideo=(data)=>post('/admin/getVideo',data);
//上传文件名至数据库.
export const insertFile=(id,name,mobileType)=>post(`/admin/insertFile/${id}/${name}/${mobileType}`);
export const getNewsFile=()=>post('/admin/getNewsFile');
export const getFile=(id,mobileType)=>post(`/admin/getFile/${id}/${mobileType}`);
//下载文件


